package com.ruoyi.house_sale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.EventTypeMapper;
import com.ruoyi.house_sale.domain.EventType;
import com.ruoyi.house_sale.service.IEventTypeService;

import javax.annotation.Resource;

/**
 * 事件类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-15
 */
@Service
public class EventTypeServiceImpl implements IEventTypeService 
{
    @Resource
    private EventTypeMapper eventTypeMapper;

    /**
     * 查询事件类型
     * 
     * @param eventtypeid 事件类型主键
     * @return 事件类型
     */
    @Override
    public EventType selectEventTypeByEventtypeid(Long eventtypeid)
    {
        return eventTypeMapper.selectEventTypeByEventtypeid(eventtypeid);
    }

    /**
     * 查询事件类型列表
     * 
     * @param eventType 事件类型
     * @return 事件类型
     */
    @Override
    public List<EventType> selectEventTypeList(EventType eventType)
    {
        return eventTypeMapper.selectEventTypeList(eventType);
    }

    /**
     * 新增事件类型
     * 
     * @param eventType 事件类型
     * @return 结果
     */
    @Override
    public int insertEventType(EventType eventType)
    {
        return eventTypeMapper.insertEventType(eventType);
    }

    /**
     * 修改事件类型
     * 
     * @param eventType 事件类型
     * @return 结果
     */
    @Override
    public int updateEventType(EventType eventType)
    {
        return eventTypeMapper.updateEventType(eventType);
    }

    /**
     * 批量删除事件类型
     * 
     * @param eventtypeids 需要删除的事件类型主键
     * @return 结果
     */
    @Override
    public int deleteEventTypeByEventtypeids(Long[] eventtypeids)
    {
        return eventTypeMapper.deleteEventTypeByEventtypeids(eventtypeids);
    }

    /**
     * 删除事件类型信息
     * 
     * @param eventtypeid 事件类型主键
     * @return 结果
     */
    @Override
    public int deleteEventTypeByEventtypeid(Long eventtypeid)
    {
        return eventTypeMapper.deleteEventTypeByEventtypeid(eventtypeid);
    }

}
